/**
 * Created with JetBrains WebStorm.
 * User: Brian
 * Date: 3/2/13
 * Time: 10:06 PM
 * To change this template use File | Settings | File Templates.
 */

var Config =
{

}

var count = 0;

function initialize()
{
    $("#rightAbout").show();
}

function hideAll()
{
    $("#rightAbout").hide();
    $("#rightProjects").hide();
    $("#rightWork").hide();
    $("#rightEducation").hide();
    $("#rightCode").hide();
    $("#rightContact").hide();
}

function pageAbout()
{
    if($("#rightAbout").is(':visible'))
        return;

    hideAll();
    $("#rightAbout").slideToggle();
}

function pageProjects()
{
    if($("#rightProjects").is(':visible'))
        return;

    hideAll();
    $("#rightProjects").slideToggle();
}

function pageWork()
{
    if($("#rightWork").is(':visible'))
        return;

    hideAll();
    $("#rightWork").slideToggle();
}

function pageEducation()
{
    if($("#rightEducation").is(':visible'))
        return;

    hideAll();
    $("#rightEducation").slideToggle();
}


function pageCode()
{
    if($("#rightCode").is(':visible'))
        return;

    hideAll();
    $("#rightCode").slideToggle();
}

function pageContact()
{
    if($("#rightContact").is(':visible'))
    return;

    hideAll();
    $("#rightContact").slideToggle();
}